<?php
	if(isset($_POST['type'])){
		require_once '../func/admin_func.php';
		$admin = new admin();
		$type = $_POST['type'];
		$rules = "";
		if($_POST['type']=="sign"){
			$type = 'sign';
			$rules = 'c_status = 1';
		}
		if($_POST['type']=="choice"){
			$type = 'sign';
		}
		$m =  $admin->info_count($type,$rules);
		$pagers = ceil($m/50);
		$p = $_POST['pager'];
?>
翻页: 
<ul id="yw1" class="yiiPager">
<?php
	for($i=1;$i<=$pagers;$i++){
?>
	<li class="page <?php if($i==$p){echo "selected";}?>" onclick="pager(<?php echo "'".$_POST['type']."',".$i;?>);return false;"><a href=""><?php echo $i;?></a></li>
<?php
	}
?>
</ul>
<?php
	}
?>